package com.zjitc.service;

import com.zjitc.common.ServerResponse;
import com.zjitc.model.Emp;
import com.zjitc.model.User;
import com.zjitc.token.Token;
import java.util.List;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/28 15:05
 * @description:
 */
public interface UserService {

  ServerResponse<User> login(String username, String password);

  ServerResponse<User> userRegister(User user);

  ServerResponse<Object> check_valid(String str, String type);

  ServerResponse get_user_info(User user);

  ServerResponse forget_get_question(String username);

  ServerResponse forget_check_answer(String username, String question, String answer);

  ServerResponse forget_reset_password(String username, String passwordOld,
      Token forgetToken);

  ServerResponse reset_password(User user, String passwordOld, String passwordNew);

  ServerResponse update_information(User user, String email, String phone, String question,
      String answer);

  ServerResponse get_information(User user);

  ServerResponse Emp(List<Emp> list);

  /*ServerResponse<List> findAllUser();*/

/*  ServerResponse logout(HttpSession session, User user);*/
}
